package sv.gob.mh.dgii.model;

// Generated Dec 11, 2007 2:39:47 PM by Hibernate Tools 3.2.0.beta7

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * DcDeclaracionOblig generated by hbm2java
 */
@Entity
@Table(name = "DC_DECLARACION_OBLIG", schema = "EDADEPUDOC", uniqueConstraints = {})
@SequenceGenerator(name="SEQ_DC_DECLARACION_OBLIG" , sequenceName="SEQ_DC_DECLARACION_OBLIG")
public class DcDeclaracionOblig implements java.io.Serializable {

	// Fields    

	/**
	 * 
	 */
	private static final long serialVersionUID = 281985653593955882L;

	private Long cdeclaracionOblig;

	private EdDeclaraciones edDeclaraciones;

	private String cobligacion;

	private Integer ccampoOblig;

	private Date fpdeclaracion;

	private String nfolio;

	private String nit;

	private Double vtotalPago;

	private Double vtotalDevolver;

	private Integer cformulario;

	private Integer cversion;

	private Date fpresentacion;

	// Constructors

	/** default constructor */
	public DcDeclaracionOblig() {
	}

	/** minimal constructor */
	public DcDeclaracionOblig(Long cdeclaracionOblig,
			EdDeclaraciones edDeclaraciones, String cobligacion,
			Integer cformulario, Integer cversion, Date fpresentacion) {
		this.cdeclaracionOblig = cdeclaracionOblig;
		this.edDeclaraciones = edDeclaraciones;
		this.cobligacion = cobligacion;
		this.cformulario = cformulario;
		this.cversion = cversion;
		this.fpresentacion = fpresentacion;
	}

	/** full constructor */
	public DcDeclaracionOblig(Long cdeclaracionOblig,
			EdDeclaraciones edDeclaraciones, String cobligacion,
			Integer ccampoOblig, Date fpdeclaracion, String nfolio, String nit,
			Double vtotalPago, Double vtotalDevolver,
			Integer cformulario, Integer cversion, Date fpresentacion) {
		this.cdeclaracionOblig = cdeclaracionOblig;
		this.edDeclaraciones = edDeclaraciones;
		this.cobligacion = cobligacion;
		this.ccampoOblig = ccampoOblig;
		this.fpdeclaracion = fpdeclaracion;
		this.nfolio = nfolio;
		this.nit = nit;
		this.vtotalPago = vtotalPago;
		this.vtotalDevolver = vtotalDevolver;
		this.cformulario = cformulario;
		this.cversion = cversion;
		this.fpresentacion = fpresentacion;
	}

	// Property accessors
	@Id
	@Column(name = "C_DECLARACION_OBLIG", unique = true, nullable = false, insertable = true, updatable = true, precision = 18, scale = 0)
	@GeneratedValue(strategy=GenerationType.AUTO, generator="SEQ_DC_DECLARACION_OBLIG")
	public Long getCdeclaracionOblig() {
		return this.cdeclaracionOblig;
	}

	public void setCdeclaracionOblig(Long cdeclaracionOblig) {
		this.cdeclaracionOblig = cdeclaracionOblig;
	}

	@ManyToOne(cascade = {}, fetch = FetchType.LAZY)
	@JoinColumn(name = "C_DECLARACION", unique = false, nullable = false, insertable = true, updatable = true)
	public EdDeclaraciones getEdDeclaraciones() {
		return this.edDeclaraciones;
	}

	public void setEdDeclaraciones(EdDeclaraciones edDeclaraciones) {
		this.edDeclaraciones = edDeclaraciones;
	}

	@Column(name = "C_OBLIGACION", unique = false, nullable = false, insertable = true, updatable = true, length = 2)
	public String getCobligacion() {
		return this.cobligacion;
	}

	public void setCobligacion(String cobligacion) {
		this.cobligacion = cobligacion;
	}

	@Column(name = "C_CAMPO_OBLIG", unique = false, nullable = true, insertable = true, updatable = true, precision = 6, scale = 0)
	public Integer getCcampoOblig() {
		return this.ccampoOblig;
	}

	public void setCcampoOblig(Integer ccampoOblig) {
		this.ccampoOblig = ccampoOblig;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "FP_DECLARACION", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
	public Date getFpdeclaracion() {
		return this.fpdeclaracion;
	}

	public void setFpdeclaracion(Date fpdeclaracion) {
		this.fpdeclaracion = fpdeclaracion;
	}

	@Column(name = "N_FOLIO", unique = false, nullable = true, insertable = true, updatable = true, length = 12)
	public String getNfolio() {
		return this.nfolio;
	}

	public void setNfolio(String nfolio) {
		this.nfolio = nfolio;
	}

	@Column(name = "NIT", unique = false, nullable = true, insertable = true, updatable = true, length = 14)
	public String getNit() {
		return this.nit;
	}

	public void setNit(String nit) {
		this.nit = nit;
	}

	@Column(name = "V_TOTAL_PAGO", unique = false, nullable = true, insertable = true, updatable = true, precision = 18)
	public Double getVtotalPago() {
		return this.vtotalPago;
	}

	public void setVtotalPago(Double vtotalPago) {
		this.vtotalPago = vtotalPago;
	}

	@Column(name = "V_TOTAL_DEVOLVER", unique = false, nullable = true, insertable = true, updatable = true, precision = 18)
	public Double getVtotalDevolver() {
		return this.vtotalDevolver;
	}

	public void setVtotalDevolver(Double vtotalDevolver) {
		this.vtotalDevolver = vtotalDevolver;
	}

	@Column(name = "C_FORMULARIO", unique = false, nullable = false, insertable = true, updatable = true, precision = 4, scale = 0)
	public Integer getCformulario() {
		return this.cformulario;
	}

	public void setCformulario(Integer cformulario) {
		this.cformulario = cformulario;
	}

	@Column(name = "C_VERSION", unique = false, nullable = false, insertable = true, updatable = true, precision = 4, scale = 0)
	public Integer getCversion() {
		return this.cversion;
	}

	public void setCversion(Integer cversion) {
		this.cversion = cversion;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "F_PRESENTACION", unique = false, nullable = false, insertable = true, updatable = true, length = 7)
	public Date getFpresentacion() {
		return this.fpresentacion;
	}

	public void setFpresentacion(Date fpresentacion) {
		this.fpresentacion = fpresentacion;
	}

}
